import request from '@/utils/request-dev'

//新增论文列表
export function getArticleList(param) {
    return request({
        url: '/mbl/Article/getArticleList',
        method: 'get',
        params: param
    })
}

//新增文章
export function addArticle(param) {
    return request({
        url: 'mbl/Article/addArticle',
        method: 'post',
        data: param
    })
}

//修改文章
export function updateArticle(param) {
    return request({
        url: 'mbl/Article/updateArticle',
        method: 'post',
        data: param
    })
}

//删除文章
export function deleteArticle(param) {
    return request({
        url: 'mbl/Article/deleteArticle',
        method: 'post',
        data: param,
    })
}

//获取书籍列表
export function getBookList(param){
    return request({
        url: 'mbl/Book/getBookList',
        method: 'get',
        params: param,
    })
}
//修改书籍信息
export function updateBook(param) {
    return request({
        url: 'mbl/Book/updateBook',
        method: 'post',
        data: param
    })
}

//删除书籍信息
export function deleteBook(param) {
    return request({
        url: 'mbl/Book/deleteBook',
        method: 'post',
        data: param
    })
}

//新增书籍信息
export function addBook(param) {
    return request({
        url: 'mbl/Book/addBook',
        method: 'post',
        data: param
    })
}

// 上传图片
export function uploadFile(param) {
    return request({
        contentType: false,
        headers: {'X-Requested-With': 'XMLHttpRequest'},
        url: '/mbl/FileController/uploadFile',
        method: 'post',
        data: param
    })
}

//获取专利列表
export function getPatentList(param) {
    return request({
        url: 'mbl/Patent/getPatentList',
        method: 'get',
        params: param
    })
}

//删除专利
export function deletePatent(param) {
    return request({
        url: 'mbl/Patent/deletePatent',
        method: 'post',
        data: param,
    })
}

//修改专利
export function updatePatent(param) {
    return request({
        url: 'mbl/Patent/updatePatent',
        method: 'post',
        data: param,
    })
}

//新增专利
export function addPatent(param) {
    return request({
        url: 'mbl/Patent/addPatent',
        method: 'post',
        data: param,
    })
}